a = "mingzishi:{0},yanling:{1}"
b = a.format("小明","1324")
print(a)
print(b)

d = "mingzishi:{mingzishi},yanling:{yanling}"
e = d.format(mingzishi="小明",yanling="1324")
print(d)
print(e)

f = "{0}的存款是 ： {1:.2f}"
g = f.format("小明",1000.123456)
print( f)
print(g)
